import request from '@/utils/request'

// 获取所有宠物
export function getAllPets(params) {
  return request({
    url: '/pet',
    method: 'GET',
    params
  })
}
 // 获取宠物详情
export function getPetDetail(id) {
  return request({
    url: `/pet/${id}`,
    method: 'GET'
  })
}
